#!/usr/bin/python
# -*- coding: utf8 -*-
#
# @author: natloc
# @date: 2019/10/22
# @time: 12:59
# @doc: 财商 * iOS 脚本
# Copyright © 2019 natloc. All rights reserved.
#


# --- 必选项
export_method = "ad-hoc"
scheme = "DownloadIPA"

IPA_FILE_SERVER = "git@gitee.com:caimter/IPAS.git"
PROJECTNAME = "DownloadIPA"
APP_NAME = u"DownloadIPA"
PROJECT_GIT_URL = "https://gitee.com/caimter/DownloadIPA.git"

TEAM_ID = "P6AQY3MBYW"
BUNDLE_ID = "www.LD.com.DownloadIPA"

CERTIFICATE_INFO_ADHOC = ("Apple Distribution: Xiaoqi Liu (P6AQY3MBYW)", u"test_ad-Hoc")   # 财商：正式

#QIYE_WECHAT_WEBHOOK = "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=309f173d-de7a-4f0a-ba3a-05f01ca7ea8a"  # 财商: 正式
QIYE_WECHAT_WEBHOOK = "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=bb489ea0-ff83-4561-baf6-5dd5135d1a75"  # 测试：一个人的群



# --- 可选项

# 可选：发布到 appstore 时必须设置
ITC_API_KEY = "7J4N7BQFCM"
ITC_ISSUER_ID = "811e5f14-7529-4416-98ce-2355e3f0b9e1"

# 可选：发布到 appstore 时必须设置

# 可选：生成的二维码的背景图
QRCODE_BG_PNG_PATH = "/Users/xb/Documents/ios/fq/qrcode-bg.png"
QRCODE_BG_STANDBY_PNG_PATH = "/Users/xb/Documents/ios/fq/qrcode-bg-standby.png"
APP_LOGO_FILE = "/Users/xb/Documents/ios/fq/qrcode-logo.png"




from nat_lib.global_ import nat_global
nat_global.set("export_method", export_method)
nat_global.set("scheme", scheme)

nat_global.set("IPA_FILE_SERVER", IPA_FILE_SERVER)
nat_global.set("PROJECTNAME", PROJECTNAME)
nat_global.set("APP_NAME", APP_NAME)
nat_global.set("APP_LOGO_FILE", APP_LOGO_FILE)
nat_global.set("PLATFORM", "ios")
nat_global.set("PROJECT_GIT_URL", PROJECT_GIT_URL)
nat_global.set("TEAM_ID", TEAM_ID)
nat_global.set("BUNDLE_ID", BUNDLE_ID)
nat_global.set("ITC_API_KEY", ITC_API_KEY)
nat_global.set("ITC_ISSUER_ID", ITC_ISSUER_ID)
nat_global.set("CERTIFICATE_INFO_ADHOC", CERTIFICATE_INFO_ADHOC)
nat_global.set("QIYE_WECHAT_WEBHOOK", QIYE_WECHAT_WEBHOOK)
nat_global.set("QRCODE_BG_PNG_PATH", QRCODE_BG_PNG_PATH)
nat_global.set("QRCODE_BG_STANDBY_PNG_PATH", QRCODE_BG_STANDBY_PNG_PATH)
nat_global.set("POD_UPDATE_FQ_RESOURCE", True)


import archive